<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <input type="text" id="elInput" />
    <div id="elDiv" type="text">hello div</div>
    <script>
      const elInput = document.getElementById("elInput");
      const elDiv = document.getElementById("elDiv");

      console.log(elInput.type);
      console.log(elDiv.type);
    </script>
  </body>
</html>
